/*
 * @Description: Description
 * @Author: wning
 * @Date: 2022-12-01 16:22:31
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-15 09:56:16
 */

import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('system.dictValue.dictValueName'),
    width: 'auto',
    prop: 'dictLabel',
    fixed: true
  },
  {
    label: i18n.t('system.dictValue.dictValue'),
    width: 'auto',
    prop: 'dictValue',
    fixed: true
  },
  {
    label: i18n.t('system.dictValue.International'),
    width: 'auto',
    prop: 'lang',
    fixed: true
  },
  {
    label: i18n.t('system.dictValue.sort'),
    width: 'auto',
    prop: 'sort',
    fixed: true
  },
  {
    label: i18n.t('system.dict.defaultValue'),
    width: 'auto',
    prop: 'preset',
    fixed: true
  },
  {
    label: i18n.t('system.dict.enable'),
    minWidth: 110,
    width: 'auto',
    prop: 'state'
  },
  {
    label: i18n.t('organization.rank.createId'),
    prop: 'createUserName',
    width: 'auto'
  },
  {
    label: i18n.t('organization.rank.createTime'),
    prop: 'createTime',
    minWidth: 160,
    width: 'auto'
  }
]
export const stateOption = [
  { value: 0, label: '是' },
  { value: 1, label: '否' }
]
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:dict:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:dict:delete'
  }
]
